package icu.sunway.gushenBlogBackEnd.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import icu.sunway.gushenBlogBackEnd.Entity.Data.ProjectDO;
import icu.sunway.gushenBlogBackEnd.Entity.View.Project.ProjectPostVO;
import icu.sunway.gushenBlogBackEnd.Entity.View.Project.ProjectUpdateVO;
import icu.sunway.gushenBlogBackEnd.Entity.View.ResultVO;

import java.util.List;

public interface ProjectService extends IService<ProjectDO> {
    ResultVO<List<ProjectDO>> getProjects();

    ResultVO<List<ProjectDO>> getProjectListByPage(int curPage, int pageSize);

    ResultVO<Long> getProjectCount();

    ResultVO<Boolean> addProject(ProjectPostVO projectPostVO);

    ResultVO<Boolean> removeProject(String id);

    ResultVO<Boolean> updateProject(ProjectUpdateVO projectUpdateVO);
}
